'use strict';

function average_uneven(collection) {
  var arr=[];
  for(let i of collection){
     if(i%2!=0){
          arr.push(i);
    }      
   }
  var ab=arr.reduce( function (total,item){
    return total + item;}
    ,0);
  console.log(ab);
  return ab/arr.length; 
  //在这里写入代码
}

module.exports = average_uneven;
